#ifndef __TLB_H__
#define __TLB_H__

#include "common.h"

#define TLB_SIZE 64

typedef struct {
    bool valid_bit;
    uint32_t tag;
    uint32_t page_info;
} TLBItem;

TLBItem tlb[TLB_SIZE];

void init_tlb();
int tlb_read(lnaddr_t);
void tlb_write(lnaddr_t, hwaddr_t);

#endif